package com.xpfirst.arm;

import com.xpfirst.ActivityManage;

import android.os.Bundle;
import android.os.Message;
import android.util.Log;

public class ARMBiZhang implements Runnable{
    public ARMJNI armjni;
    public int fd;
    public String bizhang;
	public void run() {
    	fd = armjni.openBiZhang();
    	Log.v("open bizhang", String.valueOf(fd));
    	if(fd != -1){
    		while(true){
    			String bz = armjni.ReadBiZhang();
    			if(!(bz.equals(bizhang))){
    				bizhang = bz;
                    ActivityManage.sendMsg(1, "bizhang", bizhang);
    			}
    		}
    	}
	}
}
